import React, { Component } from "react";
import './QQMusic.css';
import {Route, NavLink} from 'react-router-dom';
import MusicHall from "../../pages/MusicHall/MusicHall";
import MyMusic from "../../pages/MyMusic/MyMusic";

export default class QQMusic extends Component {
    render() {
        return <div className="music-container">
            <ul className="top-nav">
                <li><NavLink to="/home">音乐馆</NavLink></li> 
                <li><NavLink to="/mine">我的音乐</NavLink></li> 
            </ul>
            <hr />
            <Route path="/home" component={MusicHall} />
            <Route path="/mine" component={MyMusic} />
        </div>;
    }
}
